import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';

// 从本地存储获取主题设置
const savedTheme = localStorage.getItem('theme') || 'light';
// 设置文档根元素的类名
document.documentElement.className = savedTheme;

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
); 